#if !defined(AFX_COLORPALETTE_H__DCFA71FC_E36E_4A98_8AE7_D974E096B582__INCLUDED_)
#define AFX_COLORPALETTE_H__DCFA71FC_E36E_4A98_8AE7_D974E096B582__INCLUDED_

#include "ColorBox.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorPalette.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CColorPalette window

class CColorPalette : public CStatic
{
// Construction
public:
	CColorPalette();

// Attributes
public:
	int m_nBackColor;
	int m_nForeColor;

// Operations
public:
	void DrawMemDC();
	void UpdateSampleColor();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CColorPalette)
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetForeColor(int nForeColor, BOOL bHighLight)
	{
		if(bHighLight)
		{
			nForeColor += 9;
		}
		m_nForeColor = nForeColor;
	}
	int GetForeColor()
	{
		return (m_nForeColor > 8)? (m_nForeColor - 1): m_nForeColor;
	}
	void DrawMonitor(CDC &dc, const CRect &rect, COLORREF clr1, COLORREF clr2, COLORREF clr3);
	BOOL m_bVert;
	virtual ~CColorPalette();

	// Generated message map functions
protected:
	COLORREF m_clrDowned;
	void UpdateColors();
	COLORREF m_clrSelected;
	CBitmap m_membmp;
	BOOL m_bDowned;
	int m_nHoverColor;
	CDC m_memdc;
	//{{AFX_MSG(CColorPalette)
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnSysColorChange();
	afx_msg void OnSysKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COLORPALETTE_H__DCFA71FC_E36E_4A98_8AE7_D974E096B582__INCLUDED_)
